<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="http://www.centit.com/el/coderepo" prefix="cp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%@page import="com.centit.framework.security.model.CentitUserDetails"%>
<%@page import="com.centit.framework.common.WebOptUtils"%>
<html>
<head>
<link rel="stylesheet" href="${pageContext.request.contextPath}/ui/layui/css/layui.css"  media="all">
<link rel="stylesheet" href="${pageContext.request.contextPath}/style/viewtable.css"  media="all">
<%-- <link rel="stylesheet" href="${pageContext.request.contextPath}/modules/style/Styletable.css"  media="all" > --%>

<script src="${pageContext.request.contextPath}/ui/js/jquery/jquery-1.11.2.min.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/ui/layui/layui.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/ui/layui/alert.js" charset="utf-8"></script>
<script src="${pageContext.request.contextPath}/vue/js/echarts.min.js" charset="utf-8"></script>
<style type="text/css">
.centit-uploader .uploaded-files .uploaded-down {
    float: right;
    margin-right: 60px;
    color: #158144;
    }
</style>
<%  
HttpServletRequest req = (HttpServletRequest) request;
// 判断用户访问的是否是登录页面
CentitUserDetails userDetails=WebOptUtils.getLoginUser(req);
if (userDetails!=null) {
	
} else {
	%>
	<script type='text/javascript'>
	layui.config({
	    base: "/dhjdglxt/modules/util/"//自定义加载的模块
	}).use(['layer'], function () {
	    var layer= layer = parent.layer === undefined ? layui.layer : parent.layer;
	 /*    layer.alert('平台登录信息失效，请重新登录！', function(index){
	    	 top.location.href='http://'+window.location.host+'/centit-ip';
	    	});    */
	    	top.layer.load(2);
	    	 top.layer.msg('平台登录信息失效，请重新登录！', {
   	     btn: ['确定']
	    	,time:false
   	        ,yes: function(index, layero){
   	    	   top.location.href='http://'+window.location.host+'/dhjdglxt';
   	       }
   	   });
      
	});
	</script>
	<% 
}
%>
</head>
<body>
	<script>
    	//文件服务器路径
        var UploaderPath='${cp:SYS_VALUE("uploaderpath")}/';
    </script>
</body>
</html>